package com.example.dziennikposilkow;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MlekoIPrzetworyMleczne extends DziennikMainActivity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.activity_mleko_i_przetwory_mleczne);
        
        
		
		
		final Button button_mleko = (Button) findViewById(R.id.buttonMleko);
		button_mleko.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				String str = "Mleko"; //Data you want to send        
				Intent intent = new Intent(MlekoIPrzetworyMleczne.this, TabelaProdukty.class);
				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
				v.getContext().startActivity(intent);
				
			}
			
		});
		
		final Button button_smietana_i_smietanka = (Button) findViewById(R.id.buttonSmietanaISmiatanka);
		button_smietana_i_smietanka.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				String str = "SmietanaISmietanka"; //Data you want to send        
				Intent intent = new Intent(MlekoIPrzetworyMleczne.this, TabelaProdukty.class);
				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
				v.getContext().startActivity(intent);
				
			}
			
		});
		
		final Button button_napoje_mleczne = (Button) findViewById(R.id.buttonNapojeMleczne);
		button_napoje_mleczne.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				String str = "NapojeMleczne"; //Data you want to send        
				Intent intent = new Intent(MlekoIPrzetworyMleczne.this, TabelaProdukty.class);
				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
				v.getContext().startActivity(intent);
				
			}
			
		});
		
		final Button button_sery = (Button) findViewById(R.id.buttonSery);
		button_sery.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				String str = "Sery"; //Data you want to send        
				Intent intent = new Intent(MlekoIPrzetworyMleczne.this, TabelaProdukty.class);
				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
				v.getContext().startActivity(intent);
				
			}
			
		});
		
		final Button button_lody = (Button) findViewById(R.id.buttonLody);
		button_lody.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {

				String str = "Lody"; //Data you want to send        
				Intent intent = new Intent(MlekoIPrzetworyMleczne.this, TabelaProdukty.class);
				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
				v.getContext().startActivity(intent);
				
			}
			
		});
        
        
	}
}
